/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.mts.client.utils;

import com.google.common.eventbus.EventBus;

/**
 * Created by Peter on 2016/7/26.
 */
public class EventBusUtils {

    private static EventBus eventBus;

    private static EventBus getInstance() {
        if (eventBus == null) {
            eventBus = new EventBus("App");
        }
        return eventBus;
    }

    public static void unregister(Object object) {
        getInstance().unregister(object);
    }

    public static void register(Object object) {
        getInstance().register(object);
    }

    public static void post(Object object) {
        getInstance().post(object);
    }

}
